
App({
    api:'https://huiben.1122334455.cn',
    login:'/teacher/login',//登录
    slider:'/teacher/index/slider',//轮播图
    active:'/teacher/index/active',//绘本活动
    student: '/teacher/student',//学生列表
    reading:'/teacher/student/reading',//还书
    lendbag_back:'/teacher/student/lendbag_back',//学生列表
    back_history: '/teacher/student/back_history',//学生列表
    worn:'/teacher/student/worn',//添加破损记录
    worn_history: '/teacher/student/worn_history',//破损记录
    image:'/teacher/mine/image',//更换头像
    pwd:'/teacher/mine/pwd',//修改密码
    name:'/teacher/mine/name',//修改姓名
    read_history:'/teacher/student/read_history',//借阅记录
    bookbags:'/teacher/student/bookbags',
    lendbag:'/teacher/student/lendbag',//确认推荐
    yuer:'/teacher/index/yuer',//育儿讲堂
    goods:'/teacher/index/goods',//绘本音频

    popenid:'/parent/index/openid',//获取用户的openid
    plogin:'/parent/login',//登录
    pregister_yzm:'/parent/login/register_yzm',//获取验证码
    pschool:'/parent/login/school',//学校搜索
    pregister:'/parent/login/register',//注册
    pslide:'/parent/index/slider',//轮播图
    pyuer:'/parent/index/yuer',//育儿讲堂
    pname:'/parent/mine/name',//修改姓名
    pimage:'/parent/mine/image',//修改头像
    ppwd:'/parent/mine/pwd',//修改密码
    pyuer_collect:'/parent/mine/yuer_collect',//收藏
    pyuer_collect_cancel:'/parent/mine/yuer_collect_cancel',//取消收藏
    pgoods:'/parent/index/goods',//绘本音频
    pgoods_collect:'/parent/mine/goods_collect',//收藏音频
    pgoods_collect_cancel:'/parent/mine/goods_collect_cancel',//取消收藏音频
    preading:'/parent/mine/reading',//正在阅读
    pread_history:'/parent/mine/read_history',//阅读历史
    pactive:'/parent/index/active',//活动
    pcollect_yuer: '/parent/mine/collect_yuer',//我的收藏育儿
    pcollect_goods:'/parent/mine/collect_goods',//我的收藏绘本音频
    pvip_preview:'/parent/mine/vip_preview',//会员购买信息
    popenid:'/parent/index/openid',//获取openid
    pvip:'/parent/mine/vip',//购买会员
    pvip_info:'/parent/mine/vip_info',
    pmessage:'/parent/mine/message',//用户确认接收订阅消息
    plogout:'/parent/mine/logout',//退出登录

    bookbag:'/ajax/mini/bookbag',//书包查询

    // 园长端--------------------------------
    yzlogin:'/school/login',//登录
    yzslider:'/school/index/slider',//轮播图
    yzyuer:'/school/index/yuer',//育儿讲堂
    yzactive:'/school/index/active',//绘本活动
    yzgoods:'/school/index/goods',//绘本音频
    yzstudent:'/school/student',//学生列表
    yzimage:'/school/mine/image',//修改头像
    yzname:'/school/mine/name',//修改姓名
    yzpwd:'/school/mine/pwd',//修改密码
    yzteacher:'/school/student/teacher',//教师列表
    yzclass:'/school/student/classs',//班级列表
    yzbookbags:'/school/student/bookbags',//书包列表
    
  /**
   * 当小程序初始化完成时，会触发 onLaunch（全局只触发一次）
   */
  onLaunch: function () {
    
    wx.hideTabBar({})
  },

  /**
   * 当小程序启动，或从后台进入前台显示，会触发 onShow
   */
  onShow: function (options) {
    wx.hideHomeButton() 
    
  },

  /**
   * 当小程序从前台进入后台，会触发 onHide
   */
  onHide: function () {
    
  },

  /**
   * 当小程序发生脚本错误，或者 api 调用失败时，会触发 onError 并带上错误信息
   */
  onError: function (msg) {
    
  }
})
